From 319976d655ec70d20748513d34af66abd400cc86 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sun, 25 Aug 2013 21:25:07 +0000 Subject: [PATCH] Another fix in gpx.cc. With this, vtesto runs to completion on Ubuntu 12.04. --- gpsbabel/gpx.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gpsbabel/gpx.cc b/gpsbabel/gpx.cc index 852504ddd..27cdcc123 100644 --- a/gpsbabel/gpx.cc +++ b/gpsbabel/gpx.cc @@ -206,18 +206,17 @@ gpx_add_to_global(gpx_global_entry* ge, const QString& s) { queue* elem, *tmp; gpx_global_entry* gep; - const char* cdata = CSTR(s); QUEUE_FOR_EACH(&ge->queue, elem, tmp) { gep = BASE_STRUCT(elem, gpx_global_entry, queue); - if (0 == strcmp(cdata, gep->tagdata)) { + if (0 == s.compare(gep->tagdata)) { return; } } gep = (gpx_global_entry*) xcalloc(sizeof(*gep), 1); QUEUE_INIT(&gep->queue); - gep->tagdata = xstrdup(cdata); + gep->tagdata = xstrdup(CSTR(s)); ENQUEUE_TAIL(&ge->queue, &gep->queue); } -- 2.30.2